#ifndef XDELTAWRAPPER_H
#define XDELTAWRAPPER_H

#include <QtCore>
#include <QtDebug>
#include <stdio.h>
#include <sys/stat.h>
#include "../tools/xdelta/xdelta3.h"

class XDeltaWrapper {
public:
    static void encode(QString source, QString newfile, QString diff);
    static void decode(QString source, QString diff, QString decoded);
private:
    static int code(int encode, FILE* InFile, FILE* SrcFile, FILE* OutFile, int BufSize);
};



#endif // XDELTAWRAPPER_H
